#pragma once

namespace mmath
{
	struct Ray
	{
	public:
		Ray(XMVECTOR origin, XMVECTOR direction)
		{
			XMStoreFloat3(&Origin, origin);
			XMStoreFloat3(&Direction, XMVector3Normalize(direction));
		}
		XMFLOAT3 Origin;
		XMFLOAT3 Direction;

		float intersectSphere(XMVECTOR spherePos, float sphereRadius) const;
	};
}